-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 Batch api-server->wb-api-server requests in map endpoint in the api-server
#8514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
🎨 Batch api-server->wb-api-server requests in map endpoint in the api-server
#8514
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8514 +/- ##
==========================================
+ Coverage 87.23% 87.27% +0.03%
==========================================
Files 1934 1671 -263
Lines 76057 68804 -7253
Branches 1349 1010 -339
==========================================
- Hits 66350 60048 -6302
+ Misses 9303 8442 -861
+ Partials 404 314 -90
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx.. Following our offline discussion, check the batch operations and see if you can reuse and even extend some of these concepts
tjhx
...ibrary/src/servicelib/rabbitmq/rpc_interfaces/webserver/functions/functions_rpc_interface.py
Outdated
Show resolved
Hide resolved
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/main.py
Show resolved
Hide resolved
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/webserver/v1/functions.py
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/api/routes/functions_routes.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_controller/_functions_rpc.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_controller/_functions_rpc.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/functions/_controller/_functions_rpc.py
Show resolved
Hide resolved
|



What do these changes do?
Motivated by https://git.speag.com/oSparc/osparc-infra/-/issues/incident/81, this PR batches rpc requests
api-server->wb-api-serverto minimize the number of internal requests required to handle themapendpoint in the api-server.api-server->wb-api-serverperformed when calling the map endpoint does not depend on the number of inputs passed.mapendpoint in the api-server essentially had a loop around therunendpoint which meant that the number of RPC requestsapi-server->wb-api-serverperformed when a user called themapendpoint was#inputs*#(requests in run endpoint). With these changes and 🐛 Ensure function execute permission check is performed only once in map endpoint #8499 the number of requests will be#(requests in run endpoint).Related issue/s
How to test
Dev-ops